<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>

<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!--
    var Cookie = {};

	Cookie.setValue = function(name, value){
        window.document.cookie = name + "=" + value;;
    }
    Cookie.setValue = function(name, value, path){
	    if(path == null) {
			path = "/"
		}
        window.document.cookie = name + "=" + value + ";path=" + path;;
    }

	function Params(str){
		var _params = new Object();

		init(str);

		function init(str){
			if(str != null && str.length > 0){
				var keyValues = str.split("&");
				for(var i = 0; i < keyValues.length; i++){
					var curName = keyValues[i].split("=")[0].replace(/^ /gi,"");
					var curValue = keyValues[i].replace(keyValues[i].split("=")[0] + "=", "");
					_params[curName] = unescape(curValue);
				}
			}
		}

		this.getValue = function (name){
			return _params[name];
		}
	}

	var queryString = location.search.substring(1);
	var params = new Params(queryString);

	var token = params.getValue("token");
	var url = params.getValue("url");
	if(token != null){
		Cookie.setValue("token", token);
	}
	if(url != null){
		document.location = url;
	}
//-->
</SCRIPT>
</BODY>
</HTML>
